﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001283 RID: 4739
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwitchLineupIndexScRsp : IMessage<SwitchLineupIndexScRsp>, IMessage, IEquatable<SwitchLineupIndexScRsp>, IDeepCloneable<SwitchLineupIndexScRsp>, IBufferMessage
	{
		// Token: 0x17003C14 RID: 15380
		// (get) Token: 0x0600D498 RID: 54424 RVA: 0x0023C31C File Offset: 0x0023A51C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwitchLineupIndexScRsp> Parser
		{
			get
			{
				return SwitchLineupIndexScRsp._parser;
			}
		}

		// Token: 0x17003C15 RID: 15381
		// (get) Token: 0x0600D499 RID: 54425 RVA: 0x0023C323 File Offset: 0x0023A523
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwitchLineupIndexScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003C16 RID: 15382
		// (get) Token: 0x0600D49A RID: 54426 RVA: 0x0023C335 File Offset: 0x0023A535
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwitchLineupIndexScRsp.Descriptor;
			}
		}

		// Token: 0x0600D49B RID: 54427 RVA: 0x0023C33C File Offset: 0x0023A53C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwitchLineupIndexScRsp()
		{
		}

		// Token: 0x0600D49C RID: 54428 RVA: 0x0023C344 File Offset: 0x0023A544
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwitchLineupIndexScRsp(SwitchLineupIndexScRsp other) : this()
		{
			this.index_ = other.index_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D49D RID: 54429 RVA: 0x0023C375 File Offset: 0x0023A575
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwitchLineupIndexScRsp Clone()
		{
			return new SwitchLineupIndexScRsp(this);
		}

		// Token: 0x17003C17 RID: 15383
		// (get) Token: 0x0600D49E RID: 54430 RVA: 0x0023C37D File Offset: 0x0023A57D
		// (set) Token: 0x0600D49F RID: 54431 RVA: 0x0023C385 File Offset: 0x0023A585
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Index
		{
			get
			{
				return this.index_;
			}
			set
			{
				this.index_ = value;
			}
		}

		// Token: 0x17003C18 RID: 15384
		// (get) Token: 0x0600D4A0 RID: 54432 RVA: 0x0023C38E File Offset: 0x0023A58E
		// (set) Token: 0x0600D4A1 RID: 54433 RVA: 0x0023C396 File Offset: 0x0023A596
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600D4A2 RID: 54434 RVA: 0x0023C39F File Offset: 0x0023A59F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwitchLineupIndexScRsp);
		}

		// Token: 0x0600D4A3 RID: 54435 RVA: 0x0023C3AD File Offset: 0x0023A5AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwitchLineupIndexScRsp other)
		{
			return other != null && (other == this || (this.Index == other.Index && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D4A4 RID: 54436 RVA: 0x0023C3EC File Offset: 0x0023A5EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Index != 0U)
			{
				num ^= this.Index.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D4A5 RID: 54437 RVA: 0x0023C444 File Offset: 0x0023A644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D4A6 RID: 54438 RVA: 0x0023C44C File Offset: 0x0023A64C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D4A7 RID: 54439 RVA: 0x0023C458 File Offset: 0x0023A658
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Index != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Index);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D4A8 RID: 54440 RVA: 0x0023C4B4 File Offset: 0x0023A6B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Index != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Index);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D4A9 RID: 54441 RVA: 0x0023C50C File Offset: 0x0023A70C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwitchLineupIndexScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Index != 0U)
			{
				this.Index = other.Index;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D4AA RID: 54442 RVA: 0x0023C55C File Offset: 0x0023A75C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D4AB RID: 54443 RVA: 0x0023C568 File Offset: 0x0023A768
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Index = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400550E RID: 21774
		private static readonly MessageParser<SwitchLineupIndexScRsp> _parser = new MessageParser<SwitchLineupIndexScRsp>(() => new SwitchLineupIndexScRsp());

		// Token: 0x0400550F RID: 21775
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005510 RID: 21776
		public const int IndexFieldNumber = 14;

		// Token: 0x04005511 RID: 21777
		private uint index_;

		// Token: 0x04005512 RID: 21778
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04005513 RID: 21779
		private uint retcode_;
	}
}
